

<!doctype html>

<html lang="en" data-content_root="../">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

    <title>skidl.tools.kicad6.lib module &#8212; SKiDL 2.2.0 documentation</title>
    <link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
    <link rel="stylesheet" type="text/css" href="../_static/bizstyle.css?v=a66e137f" />
    
    <script src="../_static/documentation_options.js?v=b21de401"></script>
    <script src="../_static/doctools.js?v=9bcbadda"></script>
    <script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
    <script src="../_static/bizstyle.js"></script>
    <link rel="index" title="Index" href="../genindex.html" />
    <link rel="search" title="Search" href="../search.html" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
    <!--[if lt IE 9]>
    <script src="_static/css3-mediaqueries.js"></script>
    <![endif]-->
  </head><body>
    <h1 id="site-title"><a href="../../../"><img src="../../../images/slim_banner.png" width="100%"></a></h1>
    
    <div class="related" role="navigation" aria-label="Related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SKiDL 2.2.0 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.tools.kicad6.lib module</a></li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="module-skidl.tools.kicad6.lib">
<span id="skidl-tools-kicad6-lib-module"></span><h1>skidl.tools.kicad6.lib module<a class="headerlink" href="#module-skidl.tools.kicad6.lib" title="Link to this heading">¶</a></h1>
<p>Parsing of Kicad libraries.</p>
<dl class="py function">
<dt class="sig sig-object py" id="skidl.tools.kicad6.lib.default_lib_paths">
<span class="sig-prename descclassname"><span class="pre">skidl.tools.kicad6.lib.</span></span><span class="sig-name descname"><span class="pre">default_lib_paths</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/tools/kicad6/lib.html#default_lib_paths"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.tools.kicad6.lib.default_lib_paths" title="Link to this definition">¶</a></dt>
<dd><p>Return default list of directories to search for part libraries.</p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="skidl.tools.kicad6.lib.get_fp_lib_tbl_dir">
<span class="sig-prename descclassname"><span class="pre">skidl.tools.kicad6.lib.</span></span><span class="sig-name descname"><span class="pre">get_fp_lib_tbl_dir</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/tools/kicad6/lib.html#get_fp_lib_tbl_dir"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.tools.kicad6.lib.get_fp_lib_tbl_dir" title="Link to this definition">¶</a></dt>
<dd><p>Get the path where the global fp-lib-table file is found.</p>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="skidl.tools.kicad6.lib.load_sch_lib">
<span class="sig-prename descclassname"><span class="pre">skidl.tools.kicad6.lib.</span></span><span class="sig-name descname"><span class="pre">load_sch_lib</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">lib</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">filename</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">lib_search_paths_</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">lib_section</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/tools/kicad6/lib.html#load_sch_lib"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.tools.kicad6.lib.load_sch_lib" title="Link to this definition">¶</a></dt>
<dd><p>Load the parts from a KiCad schematic library file.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>lib</strong> (<a class="reference internal" href="skidl.schlib.html#skidl.schlib.SchLib" title="skidl.schlib.SchLib"><em>SchLib</em></a>) – SKiDL library object.</p></li>
<li><p><strong>filename</strong> (<a class="reference external" href="https://docs.python.org/3.13/library/stdtypes.html#str" title="(in Python v3.13)"><em>str</em></a>) – The name of the KiCad schematic library file.</p></li>
<li><p><strong>lib_search_paths</strong> (<a class="reference external" href="https://docs.python.org/3.13/library/stdtypes.html#list" title="(in Python v3.13)"><em>list</em></a>) – List of paths with KiCad symbol libraries.</p></li>
<li><p><strong>lib_section</strong> – Only used for SPICE simulations.</p></li>
</ul>
</dd>
</dl>
</dd></dl>

<dl class="py function">
<dt class="sig sig-object py" id="skidl.tools.kicad6.lib.parse_lib_part">
<span class="sig-prename descclassname"><span class="pre">skidl.tools.kicad6.lib.</span></span><span class="sig-name descname"><span class="pre">parse_lib_part</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">part</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">partial_parse</span></span></em><span class="sig-paren">)</span><a class="reference internal" href="../_modules/skidl/tools/kicad6/lib.html#parse_lib_part"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#skidl.tools.kicad6.lib.parse_lib_part" title="Link to this definition">¶</a></dt>
<dd><p>Create a Part using a part definition from a KiCad V6 schematic library.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
<dd class="field-odd"><p><strong>partial_parse</strong> – If true, scan the part definition until the
name and aliases are found. The rest of the definition
will be parsed if the part is actually used.</p>
</dd>
</dl>
</dd></dl>

</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
      <div class="sphinxsidebar" role="navigation" aria-label="Main">
        <div class="sphinxsidebarwrapper">
  <div>
    <h3><a href="../index.html">Table of Contents</a></h3>
    <ul>
<li><a class="reference internal" href="#">skidl.tools.kicad6.lib module</a><ul>
<li><a class="reference internal" href="#skidl.tools.kicad6.lib.default_lib_paths"><code class="docutils literal notranslate"><span class="pre">default_lib_paths()</span></code></a></li>
<li><a class="reference internal" href="#skidl.tools.kicad6.lib.get_fp_lib_tbl_dir"><code class="docutils literal notranslate"><span class="pre">get_fp_lib_tbl_dir()</span></code></a></li>
<li><a class="reference internal" href="#skidl.tools.kicad6.lib.load_sch_lib"><code class="docutils literal notranslate"><span class="pre">load_sch_lib()</span></code></a></li>
<li><a class="reference internal" href="#skidl.tools.kicad6.lib.parse_lib_part"><code class="docutils literal notranslate"><span class="pre">parse_lib_part()</span></code></a></li>
</ul>
</li>
</ul>

  </div>
  <div role="note" aria-label="source link">
    <h3>This Page</h3>
    <ul class="this-page-menu">
      <li><a href="../_sources/rst_output/skidl.tools.kicad6.lib.rst.txt"
            rel="nofollow">Show Source</a></li>
    </ul>
   </div>
<search id="searchbox" style="display: none" role="search">
  <h3 id="searchlabel">Quick search</h3>
    <div class="searchformwrapper">
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
      <input type="submit" value="Go" />
    </form>
    </div>
</search>
<script>document.getElementById('searchbox').style.display = "block"</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related" role="navigation" aria-label="Related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="nav-item nav-item-0"><a href="../index.html">SKiDL 2.2.0 documentation</a> &#187;</li>
        <li class="nav-item nav-item-this"><a href="">skidl.tools.kicad6.lib module</a></li> 
      </ul>
    </div>
    <div class="footer" role="contentinfo">
    &#169; Copyright 2016-2025, Dave Vandenbout.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 8.2.3.
    </div>
  </body>
</html>